package com.seata.stock.service.impl;

import com.seata.stock.mapper.StockMapper;
import com.seata.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private StockMapper stockMapper;

    @Override
    @Transactional
    public void decr() {
        stockMapper.decr();
    }

}
